<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>营业订单信息表</title>

<style type="text/css">
  table.gridtable {
      font-family: verdana,arial,sans-serif;
      font-size:11px;
      color:#333333;
      border-width: 1px;
      border-color: #666666;
      border-collapse: collapse;
      text-align: center;
 }
 table.gridtable th {
     background:#b5cfd2 url('cell-blue.jpg');
     border-width: 1px;
     padding: 8px;
     border-style: solid;
     border-color: #999999;
      text-align: center;
 }
 table.gridtable td {
     border-width: 1px;
     padding: 8px;
     border-style: solid;
     border-color: #666666;
     background-color: #ffffff;
 }
 </style>

<script type="text/javascript">
function toadd() {
	document.forms[0].action="/bsc/bis_business_order/toadd";
	document.forms[0].submit();
}
</script>
</head>
<body>

<form method="post" action="/bsc/bis_business_order/list">
订单编号:<input type="text" name="qorder_id">
顾客账号:<input type="text" name="qmobile">
顾客姓名:<input type="text" name="qusername">
<input type="submit" value="查询">
<input type="button" value="商品代预约" onclick="toadd()" style="margin-bottom: 10px">

<table border="1" width="100%" rules="all" class="gridtable">
<tr>
<th></th><th>订单编号</th> <th>顾客账号</th> <th>顾客姓名</th> <th>护理项目</th> <th>消费类型</th> <th>价格(元)</th> <th>定金(元)</th> <th>预约时间</th> <th>店铺简介</th> <th>状态</th> <th>操作</th>  
</tr>
 <c:forEach items="${listbbo}" var="bbo" varStatus="stat">
<tr>
<td>${stat.index+1}</td>
 <td>${bbo.order_id}</td>
<td>${bbo.bis_Custom_UserCustom_user_id.mobile}</td> 
<td>${bbo.bis_Custom_UserCustom_user_id.username }</td> 
<td>${bbo.bis_Nurse_ProjectProject_id.project_name }</td> 
<td>
<c:if test="${bbo.order_type=='1' }">美颜币</c:if>
<c:if test="${bbo.order_type=='2' }">礼包</c:if>
<c:if test="${bbo.order_type=='3' }">项目</c:if>
</td> 
<td>${bbo.bis_Nurse_ProjectProject_id.rmb_price }</td> 
<td>${bbo.bis_Order_DepositDeposit_money.deposit_money}</td>  
<td>
<fmt:formatDate value="${bbo.subscribe_time }" pattern="yyyy-MM-dd"/>
</td> 
<td>${bbo.bis_ShopShop_id.short_name }</td> 
<td align="center"><button>
<c:if test="${bbo.order_status=='0'}">草稿 </c:if>
<c:if test="${bbo.order_status=='1' }">已预约  </c:if>
<c:if test="${bbo.order_status=='2'}">服务中</c:if>
<c:if test="${bbo.order_status=='3'}"> 已过期 </c:if>
</button>
</td> 
<td><a href="/bsc/bis_business_order/init/${bbo.order_id }">收款</a></td>
</tr>
</c:forEach> 

</table>
</form>
</body>
</html>